{include file="common/_meta" /}
<title>添加管理员 - 管理员管理 - H-ui.admin v3.1</title>
<meta name="keywords" content="李志立，lizhilimaster@163.com">
<meta name="description" content="李志立，lizhilimaster@163.com">
</head>
<body>
<div class="page-container">
	<div class="panel panel-danger">
	    <div class="panel-header">注意</div>
	    <div class="panel-body">添加成功后，他的密码是123456。如果需要验证码，不要点击获取，直接填写123456 即可。
		</div>
	</div>
	<form action="" method="post" class="form form-horizontal" id="form-category-add">
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-3">
				<span class="c-red">*</span>
				上一级手机号：</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="text" class="input-text" value=""  placeholder="" name="f_phone">
			</div>
			<div class="col-3">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-3">
				<span class="c-red">*</span>
				手机号：</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="text" class="input-text" value=""  placeholder=""  name="phone">
			</div>
			<div class="col-3">
			</div>
		</div>
		<div class="row cl">
			<div class="col-8 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>
{include file="common/_footer" /}
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});


		let wo=$("#form-category-add").validate({
			rules:{
				phone:{
					required:true,
				},
				f_phone:{
					required:true,
				},
			},
			submitHandler:function() {
				$("input[type=\"submit\"]").addClass('disabled').attr("disabled",true);
				var index = layer.load(1, {
					shade: [0.1,'#fff'] //0.1透明度的白色背景
				});
				setTimeout(()=>{
					$("input[type=\"submit\"]").removeClass('disabled').attr("disabled",false);
					layer.close(index);
				},1000)
				form.submit();
			}
		});

});
</script>
</body>
</html>